Package-level declarations

Classes to connect and manage a set of Square Readers.

Types

Link copied to clipboard

Methods of payments that might be supported by readers.

Link copied to clipboard

Error conditions that arise when pairing readers.

Link copied to clipboard
interface PairingHandle

Representation of a reader pairing available immediately from ReaderManager.pairReader. Provides a way to interact with an ongoing reader pairing, e.g. stop it.

Link copied to clipboard
class ReaderChangedEvent(val change: ReaderChangedEvent.Change, val reader: ReaderInfo, val readerSerialNumber: String?)

Data provided by Mobile Payments SDK to indicate a change in a specific reader.

Link copied to clipboard
class ReaderInfo(val id: String, val model: ReaderInfo.Model, val status: ReaderInfo.Status, val serialNumber: String?, val name: String, val connectionType: ReaderInfo.ConnectionType, val batteryStatus: ReaderInfo.BatteryStatus?, firmwareVersion: String?, firmwarePercent: Int?, val supportedCardEntryMethods: Set<CardEntryMethod>, val isForgettable: Boolean = model == Model.CONTACTLESS_AND_CHIP, val isBlinkable: Boolean = model == Model.CONTACTLESS_AND_CHIP, val firmwareInfo: ReaderInfo.ReaderFirmwareInfo)

Provides information about an individual card reader at a given time. This is an immutable snapshot of the reader's past state, not a live model object. Updates are provided via callbacks registered via ReaderManager.setReaderChangedCallback.

Link copied to clipboard
interface ReaderManager

Tracks changes to the set of available readers and their state; provides pairing and removal capabilities for card readers.

Link copied to clipboard
interface ReaderSettings

Represents reader settings that apply to all readers.

Link copied to clipboard

Result of attempting to retry a connection to a card reader.

Link copied to clipboard